package net.maku.express.biza.mapper.packagecollect;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.maku.express.biza.controller.packagecollect.vo.PackageCollectRequestVO;
import net.maku.express.biza.controller.packagecollect.vo.PackageCollectSelectAddRequestVO;
import net.maku.express.biza.controller.packagecollect.vo.PackageCollectSelectRequestVO;
import net.maku.express.biza.controller.packagecollect.vo.PackageCollectPageVO;
import net.maku.express.biza.pojo.packagecollect.PackageCollectPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author wenyingying
* @description 针对表【package_collect】的数据库操作Mapper
* @createDate 2023-11-06 23:16:05
* @Entity net.maku.biz.pojo.packagecollect.PackageCollectPojo
*/
@Mapper
public interface PackageCollectMapper extends BaseMapper<PackageCollectPojo> {

    /**
     * 查询
     * @param page
     * @param packageCollectVO
     * @return
     */
    Page<PackageCollectPojo> selectAllByIdAndCollectNoAndBoxNoAndGoodsHourse(Page<PackageCollectPojo> page,@Param("item") PackageCollectRequestVO packageCollectVO);

    /**
     * 更新
     * @param packageCollectPojo
     * @return
     */
    int insertSelective(PackageCollectPojo packageCollectPojo);

    int deleteById(@Param("id") Long id);

    Page<PackageCollectPageVO> selectData(Page<PackageCollectPageVO> page, @Param("item")PackageCollectSelectRequestVO vo, @Param("orgId")Long orgId);

    List<PackageCollectPageVO> selectData1(@Param("item") PackageCollectSelectAddRequestVO vo, @Param("orgId")Long orgId);

    PackageCollectPageVO selectPrintData(@Param("id")Long id);

    PackageCollectPojo selectById(@Param("id") Long id);

    int updateBoxStateById(@Param("boxState") Integer boxState, @Param("ids") List<Long> id);

    int updatePackHourseStateById(@Param("packHourseState") Integer packHourseState, @Param("ids") List<Long> id);

    List<PackageCollectPojo> selectByIds(@Param("ids") List<Long> id);

    int updateSelective(PackageCollectPojo packageCollectPojo);

    /**
     * 散件合包关联订单数据   2024.07.10
     * @param logisticsOrderId
     * @param packageCollectIdList
     * @return
     */
    int updateForChuCang(@Param("logisticsOrderId") Long logisticsOrderId, @Param("packageCollectIdList") List<Long> packageCollectIdList);


}




